﻿namespace ApiTemplate.Common
{
    /// <summary>
    /// 从http中读取当前用户，此接口用于扩展
    /// </summary>
    public class ICurrentUser
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 临时登录凭据
        /// </summary>
        public string Token { get; set; }

        /// <summary>
        /// 是否登录
        /// </summary>
        public bool IsLogin { get; set; }
    }
}
